Improvements in game running algorithm.

Added some helper classes for universal game running procedure.