Made the game class more oo

- renamed game class to gamestate
- added state class which game inherits