package com.kduda.battleships.controllers;

import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;

import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;

public class BattleshipsController implements Initializable {
    public GridPane myBoard;
    public GridPane opponentBoard;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
    }
}

@@ -48,69 +48,118 @@
 ort 
-javafx.fxml.Initializable;%0Aimport javafx.scene.control.Button
+com.kduda.battleships.models.Board;%0Aimport com.kduda.battleships.models.Cell;%0Aimport javafx.fxml.Initializable
 ;%0Aim
@@ -183,24 +183,20 @@
 .layout.
-GridPane
+VBox
 ;%0A%0Aimpor
@@ -215,36 +215,8 @@
 RL;%0A
-import java.util.ArrayList;%0A
 impo
@@ -322,24 +322,27 @@
 lic 
-GridPa
+VBox e
 ne
- 
 myBoard
+Area
 ;%0A  
@@ -354,25 +354,68 @@
 lic 
-GridPane opponent
+VBox playerBoardArea;%0A    Board enemyBoard;%0A    Board player
 Boar
@@ -501,16 +501,1378 @@
 rces) %7B%0A
+        initializeBoards();%0A    %7D%0A%0A    private void initializeBoards() %7B%0A        enemyBoard = new Board(true, e -%3E %7B%0A            //TODO: click handler%0A            //TODO: hover handler%0A        %7D);%0A        enemyBoardArea.getChildren().add(enemyBoard);%0A%0A        playerBoard = new Board(false, e -%3E %7B%0A            //TODO: click handler%0A            //TODO: hover handler%0A        %7D);%0A        playerBoardArea.getChildren().addAll(playerBoard);%0A%0A%0A        //HANDLERS%0A%0A//        enemyBoard = new Board(true, event -%3E %7B%0A//            if (!running)%0A//                return;%0A//%0A//            Cell cell = (Cell) event.getSource();%0A//            if (cell.wasShot)%0A//                return;%0A//%0A//            enemyTurn = !cell.shootCell();%0A//%0A//            if (enemyBoard.ships == 0) %7B%0A//                System.out.println(%22YOU WIN%22);%0A//                System.exit(0);%0A//            %7D%0A//%0A//            if (enemyTurn)%0A//                enemyMove();%0A//        %7D);%0A%0A//        playerBoard = new Board(false, event -%3E %7B%0A//            if (running)%0A//                return;%0A//%0A//            Cell cell = (Cell) event.getSource();%0A//            if (playerBoard.placeShip(new Ship(shipsToPlace, event.getButton() == MouseButton.PRIMARY), cell.x, cell.y)) %7B%0A//                if (--shipsToPlace == 0) %7B%0A//                    startGame();%0A//                %7D%0A//            %7D%0A//        %7D);%0A
     %7D%0A%7D%0A

Add boards initialize method