update final v6 of game processing code

added in comments