private static boolean validateArgs(String[] args)
	{
		if(args.length < 4)
		{
			LogFactory.getLog().error("Not enough arguments."  + HELP_MSG);
		}
		else if
		(args.length > 4)
		{
			LogFactory.getLog().error("Too many arguments."  + HELP_MSG);
		}
		else if(!(args[0].equalsIgnoreCase(EASY_DIFFICULTY) || args[0].equalsIgnoreCase(NORMAL_DIFFICULTY) ||
				args[0].equalsIgnoreCase(HARD_DIFFICULTY)))
		{
			StringBuffer errorMsg = new StringBuffer("Invalid difficulty: acceptable values are: ");
			for(int i = 0; i < AVAILABLE_DIFFICULTIES.length; i++)
			{
				if(i != 0)
				{
					errorMsg.append(", ");
				}
				errorMsg.append(AVAILABLE_DIFFICULTIES[i]);
			}
			errorMsg.append("." + HELP_MSG);
			LogFactory.getLog().error(errorMsg.toString());
		}
		else if(Integer.parseInt(args[1]) < 1)
		{
			LogFactory.getLog().error("xsize must be greater than one."  + HELP_MSG);
		}
		else if(Integer.parseInt(args[2]) < 1)
		{
			LogFactory.getLog().error("ysize must be greater than one."  + HELP_MSG);
		}
		else
		{
			return true;
		}
		return false;
	}