public Block[][] createNewBoard() {

		board = new Block[size][size];

		Random r = new Random();
		int start = 1;
		int end = 18;

		int numberOfTreasure = 3;

		while (numberOfMines != 0 && numberOfTreasure != 0) {

			for (int a = 0; a < size; a++) {
				for (int b = 0; b < size; b++) {

					int num = r.nextInt((end - start) + 1) + start;



					if (num >= 1 && num <= 3 && numberOfMines > 0) {

						board[a][b] = new Mines();
						--numberOfMines;
						continue;

					}
					if (num == 6 && numberOfTreasure > 0) {

						board[a][b] = new Treasure();
						--numberOfTreasure;
						continue;

					} else {
						board[a][b] = new Blank();
						continue;

					}
				}


			}

		}		
		// add numbers around mines
		addNumbers(board);

		return board;
	}