adds logic for tie game