Added test to main game logic