private void DisposeExplosion(ExplodingBean explosion) { if (_selectedBean != null && _selectedBean.Bean == explosion.Bean) { //TODO: Remove any other selection visuals (leave the popup though) if (_selectedBean.Viewer != null) { //TODO: This will get very annoying _selectedBean.Viewer.Close(); } _selectedBean = null; } _explosions.Remove(explosion); explosion.Dispose(); //_winnerManager.ShipDied(explosion.Bean); // this was done when creating the explosion _map.RemoveItem(explosion.Bean, true); //_beans.Remove(explosion.Bean); // this was done when creating the explosion explosion.Bean.Dispose(); }