fix logic in game in case of tie