fixed loop within player_move function