public static Position getPositionByCommand(String command) {

		if (command.equals("n")) {
			return Position.NORTH;
		}

		if (command.equals("s")) {
			return Position.SOUTH;
		}

		if (command.equals("w")) {
			return Position.WEST;
		}

		if (command.equals("e")) {
			return Position.EAST;
		}

		if (command.equals("nw")) {
			return Position.NORTHWEST;
		}

		if (command.equals("ne")) {
			return Position.NORTHEAST;
		}

		if (command.equals("sw")) {
			return Position.SOUTHWEST;
		}

		if (command.equals("se")) {
			return Position.SOUTHEAST;
		}

		if (command.equals("m")) {
			return Position.MIDDLE;
		}

		return Position.UNDEFINED;
	}