private boolean starPositionOccupied(Vector2f pos, int size) {
        for (Star s : stars) {
           if(s.pos.equals(pos) || s.pos.getX() == pos.getX() || s.pos.getY() == pos.getY() || s.rect.intersects(new Rectangle(pos.getIntX() - 5, pos.getIntY() - 5, size + 5, size + 5)) || new Rectangle(pos.getIntX() - 5, pos.getIntY() - 5, size + 5, size + 5).intersects(s.rect)) return true;
        }
        return false;
    }