removed extraneous globals in player_move