First version of the player controller.