Added check for a tie game