private void moveCharacters() {
        for (Event event : map.getEvents()) {
            if (event instanceof Characters) {
                Characters character = (Characters) event;
                switch (character.getAction()) {
                case STAND:
                    break;
                case STEP:
                    character.step(FRAME_TIME);
                    break;
                case MOVE_RANDOMLY:
                    if (new Random().nextFloat() < MOVEMENT_PROBABILITY)
                        character.moveRandomly(map);
                    break;
                default:
                    break;
                }
            }
        }
    }