public bool IsMovementAvailable(IChessPiece piece, int x, int y) { foreach (ChessTile posibleOption in piece.getAvailablePositions()) { if (posibleOption.X == x && posibleOption.Y == y) { return(true); } } return(false); }