public MMAnswer (int mode)
	{
		// Generate answer for standard mode: use six colors and four holes
		// Allows duplicate
		if ( mode == STANDARD_MODE )
		{
			// contain four holes
			answer = new char[4];
			
			// radomly select 4 colors from 6 colors
			int rand;
			
			// first color
	        rand = 1 + (int)(Math.random() * 6);
	        answer[0] = convert(rand);
	        
	        // second color
	        rand = 1 + (int)(Math.random() * 6);
	        answer[1] = convert(rand);
	        
	        // third color
	        rand = 1 + (int)(Math.random() * 6);
	        answer[2] = convert(rand);
	        
	        // fourth color
	        rand = 1 + (int)(Math.random() * 6);
	        answer[3] = convert(rand);
		}
		
		// Generates answer for challenge mode: use seven colors and five holes
		// Allows duplicate
		if ( mode == CHALLENGE_MODE )
		{
			// contain 5 holes
			answer = new char[5];
			
			// radomly select 5 colors from 7 colors
			int rand;
			
			// first color
	        rand = 1 + (int)(Math.random() * 7);
	        answer[0] = convert(rand);
	        
	        // second color
	        rand = 1 + (int)(Math.random() * 7);
	        answer[1] = convert(rand);
	        
	        // third color
	        rand = 1 + (int)(Math.random() * 7);
	        answer[2] = convert(rand);
	        
	        // fourth color
	        rand = 1 + (int)(Math.random() * 7);
	        answer[3] = convert(rand);
	        
	        // fifth color
	        rand = 1 + (int)(Math.random() * 7);
	        answer[4] = convert(rand);
	        
		}
	 
	}//MMAnswer(int mode)