moved gameStateCheck function into MainActivity