Fixed some declarations and started work on player.