Implemented the event to interact with the player