HW2 required task 8
Fixed gameHistory