public boolean locationInsideHitbox(double x, double y) {
        Iterator<Rectangle> it = hitboxes.iterator();
        while(it.hasNext()) {
            Rectangle rec = it.next();
            if(x > rec.x && x < rec.x + rec.width && y > rec.y && y < rec.y + rec.height) {
                return true;
            }
        }
        
        return false;
    }