fix bug for tie game