added cases for winning and losing
merge
added handle for win/lose message passing