public void SpawningFallingObject(){
        if(counter>=nextOccurance){
            AddFallingObjects();
            counter = 0;
            nextOccurance = minInterval + (int)(Math.random() * ((maxInterval - minInterval) + 1));
        }
        else{
            counter++;
        }
    }