fixed up the main function in the player class file