public boolean isWithinCastle(Point point) {
        int castleY = castle.getPosition().getY();
        int castleX = castle.getPosition().getX();
        for (int y = castleY; y < castleY + getCastleHeight(); y++ ) {
            for (int x = castleX; x < castleX + getCastleWidth(); x++ ) {
                if (point.getX() == x && point.getY() == y) {
                    return true;
                }
            }
        }
        return false;
    }