public boolean isValid() {

		boolean okay = true;
		// System.out.println("Horizontal? : " + horizontal);
		int checkIter = shipSize;
		if (shipSize == 1) {
			checkIter = 3;
		}
		// System.out.println("checkIter: " + checkIter);

		if (horizontal == false) {
			int yCoor = ship.getY();
			// System.out.println("Checkiter2 " + checkIter);
			while (checkIter > 0) {
				// System.out.println(computerBoard[ship.getX()][yCoor]);
				if (computerBoard[ship.getX()][yCoor] > 0) {
					okay = false;
					// System.out.println("Okay?: " + okay);
					return okay;
				}
				checkIter--;
				yCoor++;
			}
		}

		if (horizontal == true) {
			int xCoor = ship.getX();
			// System.out.println("xCoor: " + xCoor);
			// System.out.println("Checkiter2 " + checkIter);
			// System.out.println("Okay?1: " + okay);
			while (checkIter > 0) {
				if (computerBoard[xCoor][ship.getY()] > 0) {
					okay = false;
					// System.out.println("Okay?: " + okay);
					return okay;
				}
				checkIter--;
				xCoor++;
			}
		}

		else
			okay = true;
		// System.out.println("Valid? : " + okay);
		return okay;

	}