private void CheckIfUFOIsFueled(ProgressBar fuelBar, Button restartButton, Label victoryLabel) { if (fuelBar.Value == 100) { UFO.CurrentSprite.Image = Resource1.UFOWithFuel; UFO.IsFueled = true; if (UFO.CurrentSprite.Bounds.Contains(Player.CurrentSprite.Location) || Player.InsideUFO) { Player.InsideUFO = true; UFO.CurrentSprite.Image = Resource1.PlayerInsideUFO; UFO.FlyUp(); Controls.Add(victoryLabel); Controls.Add(restartButton); } } }