public void putShips(int x1, int y1, int x2, int y2) {

		if (x1 > this.getSize() || x2 > this.getSize() || y1 > this.getSize()
				|| y2 > this.getSize()) {
			System.out.println("Cant place a ship outside of board ");
			return;
		}

		this.shipArr.add(new Ship(x1,y1,x2,y2));
		if (x1 == x2) {
			// horizontal
			for (int i = y1; i <= y2; i++) {
				this.board[x1][i] = 1;
				
			}

		} else if (y1 == y2) {
			// vertical
			for (int i = x1; i <= x2; i++) {
				this.board[i][y1] = 1;
				
			}

		} else {
			System.out.println("Can't place diagonally");
			return;
		}

		this.shipArr.add(new Ship(x1, y1, x2, y2));

	}