edited player class for gamecontroller