joystick allows pacman to change direction