Handling player's movements