fixed function in gameManager
fixed a function in gameManager