fixed scope of player in move method