encoding wins and losses