@Override
	public void execute(Game game, HashMap<String, String> strings, Entity target) throws ScriptException {
		if (args[0].toLowerCase().equals("p")) {
			for (int i = 1; i < args.length; i++) {
				game.getPlayer().walk(getDir(game, args[i]));
			}
		} else if (args[0].toLowerCase().equals("t")) {
			try {
				for (int i = 1; i < args.length; i++) {
					((Walkable) target).walk(getDir(game, args[i]));
				}
			} catch (ClassCastException e) {
				throw new ScriptException(ScriptException.BAD_TARGET);
			}
		} else {
			Entity e = game.getWorld().getEntity(args[0]);
			if (e != null) {
				try {
					for (int i = 1; i < args.length; i++) {
						((Walkable) e).walk(getDir(game, args[i]));
					}
				} catch (ClassCastException error) {
					throw new ScriptException(ScriptException.BAD_TARGET);
				}
			} else {
				throw new ScriptException(ScriptException.BAD_ARGS);
			}
		}
	}