Changed the main class so that it uses the player class