fix crashes due to improper state management. MagicEvent is game specific, it should be copied using copyMap