public int levelUp(List <GameObject> itemToBeAdded) { int x; int y; Random random = new Random(); x = random.Next(0, 400); y = random.Next(0, 400); HealthBoost ranHealthBoost = new HealthBoost(60, x, y, mediator); ranHealthBoost.Load(); itemToBeAdded.Add(ranHealthBoost); Debug.WriteLine("HB added"); return(level++); }