fixing missed winning game detection