added newRound flag in gameState and fixed problem in pattern