change $game to $sim and session variable as well due to issue#90

not as trivial as you see on the impact :)