create a gameobject class and use it will the player class