player cursor and direction works in the corners