add code to determine win/loss/tie