Made GameManager a MonoBehaviour so that it can get the game loop events