fixed various bugs in the gameHelper