Odd. That's part of the code that makes the player move. Since it's looping code to check "up" or what's above the player there's a chance it's positional (IE trying to move into an empty space or outside the grid). Otherwise there's not much I can do to change that line. :(