added plotting code for game phase