Fixed winning game from crashing