Navigating Realities: Assessing Cross-Reality Transitions Through a Spatial Memory Game in VR and AR