version of game with classes now works