Adding init and cleanup methods to GameState class