public void checkEvent(Rectangle rect, Direction direction) {
        Event event = existsEvent(rect);
        if (event == null)
            return;

        if (event instanceof Characters) {
            switch (direction) {
            case UP:
                ((Characters) event).setDirection(Direction.DOWN);
                break;
            case DOWN:
                ((Characters) event).setDirection(Direction.UP);
                break;
            case LEFT:
                ((Characters) event).setDirection(Direction.RIGHT);
                break;
            case RIGHT:
                ((Characters) event).setDirection(Direction.LEFT);
                break;
            default:
                break;
            }
        }
        event.exec();
    }