public GameController(int elx, int ely, Puzzle p, GameViewController gvc, IPuzzleGamePage pgp) { elementsX = elx; elementsY = ely; puzzle = p; gameViewController = gvc; gamePage = pgp; inputState = InputState.RELEASED_NO_SELECTION; randomize(elx, ely); gameViewController.setRandomization(randomMask); assembled = false; startTime = 0; thread = new GameThread(this); }