public double getDirection() {
        if (dx > 0) {
            if (dy > 0) {
                currentDirection = DIRECTION.SOUTHEAST;
            } else if (dy < 0) {
                currentDirection = DIRECTION.NORTHEAST;
            } else {
                currentDirection = DIRECTION.EAST;
            }
        } else if (dx < 0) {
            if (dy > 0) {
                currentDirection = DIRECTION.SOUTHWEST;
            } else if (dy < 0) {
                currentDirection = DIRECTION.NORTHWEST;
            } else {
                currentDirection = DIRECTION.WEST;
            }
        } else {
            if (dy > 0) {
                currentDirection = DIRECTION.SOUTH;
            } else if (dy < 0) {
                currentDirection = DIRECTION.NORTH;
            }
        }
        return currentDirection.getRotation();
    }