fix gameManager loop