fix console errors on executing setupgame method