Created a game object class and abstracted the player into it