private int[][] createPattern() {
		int[][] squares = new int[NCELLS][NCELLS];
		int n = RAND.nextInt(NCELLS);		
		
		if (RAND.nextBoolean()){ //make a column of ones
			for (int i = 0; i < squares.length; i++) {
				squares[i][n] = 1;
			}
		} else {  //make a row of ones
			for (int i = 0; i < squares.length; i++) {
				squares[n][i] = 1;
			}
		}
		return squares;
	}