Fix game shutdown issues.
fix bad port of swap and compare function
Fix bad port macro for swap and compare
asdf
Merge branch 'back-propagation'