better slide tracking during restorePosition, code cleanup in game