protected Dir getDir(Game game, String s) throws ScriptException {
		switch (s.toLowerCase()) {
		case "n":
			return Dir.North;
		case "s":
			return Dir.South;
		case "e":
			return Dir.East;
		case "w":
			return Dir.West;
		case "p":
			Dir p = game.getPlayer().getFacing();
			switch (p) {
			case East:
				return Dir.West;
			case North:
				return Dir.South;
			case South:
				return Dir.North;
			case West:
				return Dir.East;
			default:
				break;
			}
		default:
			throw new ScriptException(ScriptException.BAD_ARGS);
		}
	}