Assignment 5 part 1 - fraction of winning times