Converted the player to a class.