public void testCountFields() {
		beginTest("testCountFields method");
		
		fillBoardRandomly();
		
		int red = 0;
		int yellow = 0;
		int green = 0;
		int blue = 0;
		
		for (int i = 0; i < Board.DIM*Board.DIM; i++) {
			if (b.getField(i) == Color.RED){
				red++;
			} else if (b.getField(i) == Color.YELLOW){
				yellow++;
			} else if (b.getField(i) == Color.GREEN){
				green++;
			} else if (b.getField(i) == Color.BLUE){
				blue++;
			}
		}
		
		boolean passed = true;
		
		if (!(b.countFields(Color.RED) == red && 
				b.countFields(Color.YELLOW) == yellow &&
				b.countFields(Color.GREEN) == green &&
				b.countFields(Color.BLUE) == blue)) {
			passed = false;
		}
		
		assertEquals("Test is countFields works", true, passed);
	}