public static Move parseMove(String input) {
		Move rez = new Move();

		int index = 0;
		while (index < input.length()) {
			char type = input.charAt(index++);

			switch (type) {
				case 'a': rez.addAttack(getArea(input, index++)); break;
				case 'b': rez.addBlock(getArea(input, index++)); break;
				case '.':
				case 'c': rez.setComment(input.substring(index)); 
						  index = input.length() + 1;
				break;
				case ' ':
				case '\t':
				case '\r':
				case '\n':
					continue;
				default:
					throw new IllegalArgumentException("Unrecognized input: " + type+ " "+(int)type);
			}
		}
		return rez;
	}