[JAVA]
I wrote a program that created a 10×10 ocean grid, added a ship,added a keypressed handler so i could move the ship around andadded N random islands to a map that the ship cannot touch. Pleasehelp with the following step. My code is below with theassignment.

See my implementation below:
— Ocean Explorer.java
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class OceanExplorer extends Application{
boolean[][] islandMap;
Pane root;
final int dimensions = 10;
final int islandCount = 10;
final int scalingFactor = 50;
Image shipImage;
ImageView shipImageView;
OceanMap oceanMap;
Scene scene;
Ship ship;
@Override
public void
PayPal Gateway not configured
PayPal Gateway not configured