test(spec): Add unit tests for game logic