private boolean getShipCoords() {
        System.out.println("INSIDE GET SHIP COORDS");
        this.validPoints = 0;
        this.pointsOnBoard = 0;


        int size = this.shipSelected.getSize(); //Gets tje size of the Ship from class Ship
        int orientation = this.shipSelected.getOrientation(); //Gets the orientation of the ship
        //Gets coords
        int x = this.shipSelected.getX();
        int y = this.shipSelected.getY();

        int[][] shipCoords = this.shipSelected.getCoords(); //Gets the cordinates of the selected ship

        for (int i = 0; i < size; i++) {
            if (orientation == 0) {
                if ((x + i >= 0) && (x + i < 10)) {
                    if (this.myBoard[(x + i)][y].getIcon().equals(this.sea)) {
                        this.validPoints += 1;
                    }
                    shipCoords[this.pointsOnBoard][0] = (x + i);
                    shipCoords[this.pointsOnBoard][1] = y;
                    this.pointsOnBoard += 1;

                    System.out.println("VALID POINTS: " + validPoints);
                    System.out.println("POINTS ON BOARD: " + pointsOnBoard);
                }

            } else if ((y + i >= 0) && (y + i < 10)) {
                if (this.myBoard[x][(y + i)].getIcon().equals(this.sea)) {
                    this.validPoints += 1;
                }
                shipCoords[this.pointsOnBoard][0] = x;
                shipCoords[this.pointsOnBoard][1] = (y + i);
                this.pointsOnBoard += 1;
            }

        }

        this.shipSelected.setCoords(shipCoords);
        boolean valid;
        //   boolean valid;
        if (this.validPoints < size) {
            valid = false;
        } else {
            valid = true;
        }
        return valid;
    }