added winCondition in gameHelper Class