@Override
    public void update() {

        parent.actionCommand = ActionCommand.MOVE;//Theres nothing else this AI will do
        Command command = null;


        Command[] commands = Command.values();
        while (command == null) {
            Command possible_command = commands[Rand.nextInt(8)];
            if (possible_command == Command.NO_MOVE) {
                possible_command = command;
                break;
            }
            Point dir = Command.commandToDir(possible_command);
            Point actor_location = parent.world_position;
            Point possible_location = Point.add(actor_location, dir);
            boolean free = GlobalGame.game.worldHash.locationFree(possible_location);
            boolean no_player = !GlobalGame.game.player.world_position.equals(possible_location);
            if (free & no_player) {
                command = possible_command;
            }
        }
        parent.command = command;
        parent.objective_set = true;

    }