changed player class to GameObject class