JAVA: need help with my code! Need help updating the GUI part of my code to reflect the moves being made by the user. I was able to set up the game succesfully, but it doesnt do anything when i press the arrow keys. It is supposed to work like the game 2048. For each arrow key, I need to check if the move can be made (board.canMove()), then perform the move (board.move(Direction)) and then add a random tile after (board.addRandomTile()). All the methods mentioned for board work fine. This is what I have so far: This is what it looks like when i run it: @Override public void start (Stage primaryStage) // Process Arguments and Initialize the Game Board processArgs (getParameters).getRaw().toArray(new String])); // Create the pane that will hold all of the visual objects pane = new GridPane(); pane.setAlignment (Pos.CENTER); pane.setPadding(new Insets(11.5, 12.5, 13.5, 14.5); pane.setStyle(\"-fx-background-color: rgb (187, 173, 16)\"); // Set the spacing between the Tiles pane.setHgap (15); pane.setVgap (15); Add your Code for the GUI Here* Text gameTitle = new Text(0, 0, \"2048\"); gameTitle.setFont (Font.font (\"Times New Roman\", FontWeight.BOLD, FontPosture.ITALIC, 40)); gameTitle.setFill(COLOR_WALUE_DARK); pane.getChi ldren).add(gameTitle); Text score new Text(1, 4, \"Score: \" + board.getScore()); score.setFont (Font.font(\"Times New Roman\", FontWeight.BOLD, 30)); score.setFiLL(COLOR_VALUE_DARK); pane.add(score,3,); Scene scene = new Scene(pane); primaryStage. setTit le(\"Gui 2048\" ) ; primaryStage.setScene(scene); primaryStage.show(); int []] myBoard board.getGrid); for (int row 0; row board.GR ID-SIZE; row++){ for (int col = 0; col board.GRID-SIZE; col++){ myTileValue-myBoard [row] [col] if (myTi levalue = 0) { Rectangle myTile new Rectangle(); myTile.setWidth(100); myTile.setHeight (100); myTi le.setFill (COLOR EMPTY); pane.add(myTile, col, row-1); scene.setOnKeyPressed (new myKeyHandler)); Solution instead of handle overrode keypressed switch(e.getcode()){ case KeyEvent.VK_UP: //your code .