Add player class and some misc functionalities.