Updated Lottery to output to a file