Added tests and refactored the game code
Merge pull request #1 from helgeblod/master

Added tests and refactored the game code