Added win/loss/draw records and fixed some bugs