private void EatPiece(PieceObject piece, PieceObject pieceToEat, int x, int y)
 {
     eatemPieces.Add(pieceToEat);
     pieceToEat.gameObject.SetActive(false);
     Debug.Log(piece.name + "(" + piece.GetX() + ", " + piece.GetY() + ") comeu " + pieceToEat.name + " (" + pieceToEat.GetX() + ", " + pieceToEat.GetY() + ")");
     SetPiecePosition(piece, x, y);
     DeselectPiece();
 }
 public void SetPiecePosition(PieceObject piece, int newX, int newY)
 {
     boardPieces[piece.GetX(), piece.GetY()] = null;
     piece.SetXY(newX, newY);
     boardPieces[newX, newY] = piece;
     piece.MovePiece(newX, newY);
     DeselectPiece();
 }