created gameofwardriver with pseudocode