public void check(Map map) {
        int dx, dy;
        int h = (int) collisionArea.getHeight();

        switch (direction) {
        case UP:
            dy = y - SPEED;
            collisionArea.setLocation(x, dy - h);
            map.checkEvent(collisionArea, direction);
            break;
        case DOWN:
            dy = y + SPEED;
            collisionArea.setLocation(x, dy - h);
            map.checkEvent(collisionArea, direction);
            break;
        case LEFT:
            dx = x - SPEED;
            collisionArea.setLocation(dx, y - h);
            map.checkEvent(collisionArea, direction);
            break;
        case RIGHT:
            dx = x + SPEED;
            collisionArea.setLocation(dx, y - h);
            map.checkEvent(collisionArea, direction);
            break;
        default:
            break;
        }

        collisionArea.setLocation(x, y - h);
    }