removed gameStateCheck function into MainActivity