Updated the process of interaction with the player.