refactor gameField to local variable