improvements in game.cpp: added context choosing method.