made control detect when games are won and lost