split checkVictoryCondition into two separate methods
Fixed variable declarations
Removed view-related code from Game object