Changed the game class for errors. Added four very basic test cases.
Everything is working fine.