Optimal yields integrated into the game class and the test program, also fixed a bug in the test program which was causing the yield to be stuck at the first block.