Input and rendering for the player done