private float getRelativeAngle() {
        int y = -((int) player.getY() - (int) enemy.getY());
        int x = (int) player.getX() - (int) enemy.getX();
        float hyp = (float) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
        if (hyp == 0) {
            return 0;
        }
        if (y == 0) {
            if (x > 0) {
                return 0;
            } else {
                return (float) Math.PI;
            }
        } else if (x == 0) {
            if (y > 0) {
                return (float) Math.PI / 2;
            } else {
                return (float) Math.PI * (3 / 2);
            }

        } else if (x > 0 && y > 0) {
            return (float) Math.acos(x / hyp);
        } else if (x > 0) {
            return (float) Math.PI * 2 - (float) Math.acos(x / hyp);
        } else if (y > 0) {
            return (float) Math.PI - (float) Math.asin(y / hyp);
        } else {
            return (float) Math.PI + (float) Math.acos(Math.abs(x) / hyp);
        }
    }