fixed a bug that allowed player to move while game is paused