Add a Battle.tie() function - does exactly what you think
Add a Battle.tie() function
- does exactly what you think

lFernanl/Pokemon-Showdown,gustavo515/final,lFernanl/Mudkip-Server,hayleysworld/serenity,Ridukuo/Test,Git-Worm/City-PS,Kill-The-Noise/BlakJack-Boilerplate,lFernanl/Lumen-Pokemon-Showdown,ShowdownHelper/Saffron,lFernanl/Zero-Pokemon-Showdown,Pikachuun/Joimmon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Gold-Solox/Pokemon-Showdown,DalleTest/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,Irraquated/Showdown-Boilerplate,kupochu/Pokemon-Showdown,Volcos/SpacialGaze,ScottehMax/Pokemon-Showdown,danpantry/Pokemon-Showdown,catanatron/pokemon-rebalance,MasterFloat/LQP-Server-Showdown,jd4564/Pokemon-Showdown,gustavo515/batata,Zarel/Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,Enigami/Pokemon-Showdown,CrestfallPS/Pokemon-Showdown,Sora-League/Sora,Pablo000/aaa,Firestatics/omega,SkyeTheFemaleSylveon/Pokemon-Showdown,xfix/Pokemon-Showdown,MayukhKundu/Technogear-Final,zek7rom/SpacialGaze,Pikachuun/Touhoumon-Showdown,Alpha-Devs/OmegaRuby-Server,MeliodasBH/Articuno-Land,ZestOfLife/FestiveLife,SilverTactic/Showdown-Boilerplate,Elveman/RPCShowdownServer,MayukhKundu/Technogear,AvinashSwaminathan/lotus-v3,ehk12/bigbangtempclone,kotarou3/Krister-Pokemon-Showdown,SerperiorBae/BaeShowdown,NoahVSGamingYT/Pokemon-Showdown,Parukia/Pokemon-Showdown,yashagl/yash-showdown,SerperiorBae/Bae-Showdown,KaitoV4X/Showdown,Ridukuo/Test2,Adithya4Uberz/KTN,comedianchameleon/test,Guernouille/Pokemon-Showdown,Ransei1/Alt,ehk12/coregit,TheDiabolicGift/Showdown-Boilerplate,JellalTheMage/PS-,Checkinator/Pokemon-Showdown,KewlStatics/Alliance,Werfin96/Ultimate,cadaeic/Pokemon-Showdown,theodelhay/test,brettjbush/Pokemon-Showdown,Wando94/Pokemon-Showdown,svivian/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,TheFenderStory/Pokemon-Showdown,Enigami/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,TheFenderStory/Pokemon-Showdown,TheManwithskills/DS,abrulochp/Dropp-Pokemon-Showdown,CharizardtheFireMage/Showdown-Boilerplate,AustinXII/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,yashagl/pokemon,Stroke123/POKEMON,UniversalMan12/Universe-Server,Adithya4Uberz/The-Tsunami-League,BlakJack/Kill-The-Noise,TogeSR/Lumen-Pokemon-Showdown,CreaturePhil/Pokemon-Showdown,HoeenCoder/SpacialGaze,Breakfastqueen/advanced,bai2/Dropp,catanatron/pokemon-rebalance,Enigami/Pokemon-Showdown,panpawn/Gold-Server,Flareninja/Hispano-Pokemon-Showdown,abulechu/Lumen-Pokemon-Showdown,SilverTactic/Showdown-Boilerplate,gustavo515/test,kuroscafe/Showdown-Boilerplate,HoeenCoder/SpacialGaze,megaslowbro1/Pokemon-Showdown,lAlejandro22/lolipoop,MeliodasBH/Articuno-Land,gustavo515/gashoro,TheManwithskills/Server-2,QuiteQuiet/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,Sora-League/Sora,EmmaKitty/Pokemon-Showdown,PrimalGallade45/Dropp-Pokemon-Showdown,ShowdownHelper/Saffron,NoahVSGamingYT/Pokemon-Showdown,Flareninja/Sora,ScottehMax/Pokemon-Showdown,DesoGit/Tsunami_PS,panpawn/Gold-Server,anubhabsen/Pokemon-Showdown,Tesarand/Pokemon-Showdown,TheManwithskills/Server-2,DB898/theregalias,Johto-Serverr/Werfin-Boilerplate,HoeenCoder/SpacialGaze,SkyeTheFemaleSylveon/Mudkip-Server,urkerab/Pokemon-Showdown,AbsolitoSweep/Absol-server,Bryan-0/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,zczd/enculer,Ecuacion/Lumen-Pokemon-Showdown,yashagl/pokemon-showdown,Irraquated/Pokemon-Showdown,LightningStormServer/Lightning-Storm,ShowdownHelper/Saffron,Firestatics/Firestatics46,Pikachuun/Pokemon-Showdown-SMCMDM,anubhabsen/Pokemon-Showdown,Hopenub/Pokemon-Showdown,TheManwithskills/Server---Thermal,Yggdrasil-League/Yggdrasil,KewlStatics/Shit,SerperiorBae/Pokemon-Showdown,Evil-kun/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,Irraquated/Pokemon-Showdown,Hidden-Mia/Roleplay-PS,abrulochp/Lumen-Pokemon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Nineage/Showdown-Boilerplate,MeliodasBH/boarhat,Arcticblast/Pokemon-Showdown,yashagl/yash-showdown,PS-Spectral/Spectral,Legendaryhades/Oblivion,hayleysworld/serenityserver,TheDiabolicGift/Showdown-Boilerplate,Volcos/SpacialGaze,hayleysworld/serenity,SerperiorBae/BaeShowdown,Wando94/Pokemon-Showdown,Tesarand/Pokemon-Showdown,gustavo515/final,CharizardtheFireMage/Showdown-Boilerplate,comedianchameleon/test,yashagl/pokecommunity,forbiddennightmare/Pokemon-Showdown-1,JellalTheMage/Jellals-Server,EmmaKitty/Pokemon-Showdown,javi501/Lumen-Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,comedianchameleon/test,TheManwithskills/New-boiler-test,kubetz/Pokemon-Showdown,TheManwithskills/serenity,aakashrajput/Pokemon-Showdown,Parukia/Pokemon-Showdown,Firestatics/Omega-Alpha,Lauc1an/Perulink-Showdown,megaslowbro1/Showdown-Server-again,bai2/Dropp,superman8900/Pokemon-Showdown,Extradeath/psserver,ZeroParadox/BlastBurners,comedianchameleon/servertest1,sirDonovan/Pokemon-Showdown,DesoGit/TsunamiPS,TheManwithskills/serenity,MayukhKundu/Mudkip-Server,Kevinxzllz/PS-Openshift-Server,Flareninja/Pokemon-Showdown,Kokonoe-san/Glacia-PS,kuroscafe/Showdown-Boilerplate,jumbowhales/Pokemon-Showdown,SerperiorBae/BaeShowdown,AWailOfATail/Pokemon-Showdown,PrimalGallade45/Lumen-Pokemon-Showdown,yashagl/pokemon-showdown,BlazingAura/Showdown-Boilerplate,Stroke123/POKEMON,svivian/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,Wando94/Spite,miahjennatills/Pokemon-Showdown,SilverTactic/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,piiiikachuuu/Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,Mystifi/Exiled,scotchkorean27/Pokemon-Showdown,Sora-League/Sora,Atwar/ServerClassroom,TheManwithskills/COC,SilverTactic/Dragotica-Pokemon-Showdown,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,urkerab/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,AWailOfATail/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Alpha-Devs/OmegaRuby-Server,lFernanl/Pokemon-Showdown,MayukhKundu/Mudkip-Server,Chespin14/Custom-Platform-Pokemon-Showdown,KewlStatics/Showdown-Template,PauLucario/LQP-Server-Showdown,DarkSuicune/Pokemon-Showdown,Pokemon-Devs/Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,PrimalGallade45/Dropp-Pokemon-Showdown,DesoGit/TsunamiPS,TbirdClanWish/Pokemon-Showdown,psnsVGC/Wish-Server,Flareninja/Pokemon-Showdown-1,JellalTheMage/PS-,DB898/theregalias,megaslowbro1/Showdown-Server-again,lFernanl/Mudkip-Server,kuroscafe/Paradox,Atwar/server-epilogueleague.rhcloud.com,CorruptedHelix/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,lFernanl/Zero-Pokemon-Showdown,Lauc1an/Perulink-Showdown,CreaturePhil/Showdown-Boilerplate,Bryan-0/Pokemon-Showdown,FakeSloth/Infinite,TheManwithskills/Server-2,HoeenKid/Pokemon-Showdown-Johto,MayukhKundu/Pokemon-Domain,PrimalGallade45/Lumen-Pokemon-Showdown,abulechu/Lumen-Pokemon-Showdown,MasterFloat/Pokemon-Showdown,iFaZe/SliverX,xCrystal/Pokemon-Showdown,Breakfastqueen/advanced,panpawn/Pokemon-Showdown,kuroscafe/Paradox,ehk12/clone,Evil-kun/Pokemon-Showdown,Lord-Haji/SpacialGaze,hayleysworld/serenityc9,QuiteQuiet/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,MayukhKundu/Technogear,Flareninja/Sora,SerperiorBae/PokemonShowdown2,Psyientist/Showdown-Boilerplate,LightningStormServer/Lightning-Storm,EienSeiryuu/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Firestatics/Firestatics46,Syurra/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,AWailOfATail/awoat,Parukia/Pokemon-Showdown,zczd/enculer,kubetz/Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,TheManwithskills/Creature-phil-boiler,Sora-Server/Sora,hayleysworld/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,SerperiorBae/Bae-Showdown,ehk12/clone,abulechu/Dropp-Pokemon-Showdown,TogeSR/Lumen-Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,LustyAsh/EOS-Master,Ecuacion/Lumen-Pokemon-Showdown,AvinashSwaminathan/lotus,sama2/Universe-Pokemon-Showdown,gustavo515/test,jumbowhales/Pokemon-Showdown,comedianchameleon/servertest1,Lord-Haji/SpacialGaze,PS-Spectral/Spectral,Legit99/Lightning-Storm-Server,LegendBorned/PS-Boilerplate,kotarou3/Krister-Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,Legit99/Lightning-Storm-Server,BadSteel/Omega-Pokemon-Showdown,TheManwithskills/COC,CreaturePhil/Pokemon-Showdown,Firestatics/Omega-Alpha,Zipzapadam/Server,Psyientist/Showdown-Boilerplate,Mystifi/Exiled,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,KewlStatics/Alliance,TheManwithskills/Creature-phil-boiler,theodelhay/test,DesoGit/Tsunami_PS,SolarisFox/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,TheManwithskills/Server---Thermal,TheManwithskills/New-boiler-test,Oiawesome/DPPtServ2,DarkSuicune/Kakuja-2.0,ehk12/coregit,TheManwithskills/Server,miahjennatills/Pokemon-Showdown,ZestOfLife/PSserver,Yggdrasil-League/Yggdrasil,Raina4uberz/Light-server,gustavo515/batata,SerperiorBae/Bae-Showdown,MasterFloat/Pokemon-Showdown,KewlStatics/Shit,panpawn/Gold-Server,Ransei1/Alt,hayleysworld/harmonia,Zipzapadam/Server,Disaster-Area/Pokemon-Showdown,HoeenCoder/SpacialGaze,ankailou/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,TheManwithskills/DS,KewlStatics/Showdown-Template,Thiediev/Pokemon-Showdown,Extradeath/advanced,TheDiabolicGift/Lumen-Pokemon-Showdown,iFaZe/SilverZ,MasterFloat/LQP-Server-Showdown,Pikachuun/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,hayleysworld/asdfasdf,Pikachuun/Joimmon-Showdown,Flareninja/Lumen-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,hayleysworld/Showdown-Boilerplate,arkanox/MistShowdown,LightningStormServer/Lightning-Storm,Wando94/Spite,urkerab/Pokemon-Showdown,JennyPRO/Jenny,BlazingAura/Showdown-Boilerplate,CorruptedHelix/Pokemon-Showdown,SkyeTheFemaleSylveon/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,UniversalMan12/Universe-Server,TheFenderStory/Showdown-Boilerplate,azum4roll/Pokemon-Showdown,psnsVGC/Wish-Server,asdfghjklohhnhn/Pokemon-Showdown,Pokemon-Devs/Pokemon-Showdown,JennyPRO/Jenny,sama2/Dropp-Pokemon-Showdown,Checkinator/Pokemon-Showdown,Sora-Server/Sora,jumbowhales/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,InvalidDN/Pokemon-Showdown,cadaeic/Pokemon-Showdown,Raina4uberz/Light-server,k3naan/Pokemon-Showdown,FakeSloth/Infinite,MayukhKundu/Flame-Savior,TheManwithskills/Dusk--Showdown,abrulochp/Dropp-Pokemon-Showdown,Tesarand/Pokemon-Showdown,PS-Spectral/Spectral,TheFenderStory/Showdown-Boilerplate,yashagl/pokemon,sama2/Viridian-Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,Celecitia/Plux-Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,VoltStorm/Server-pokemon-showdown,LustyAsh/EOS-Master,SerperiorBae/PokemonShowdown2,KewlStatics/Pokeindia-Codes,sirDonovan/Pokemon-Showdown,superman8900/Pokemon-Showdown,panpawn/Pokemon-Showdown,Firestatics/omega,KaitoV4X/Showdown,asdfghjklohhnhn/Pokemon-Showdown,Irraquated/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,DarkSuicune/Kakuja-2.0,lAlejandro22/lolipoop,svivian/Pokemon-Showdown,svivian/Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,xCrystal/Pokemon-Showdown,MayukhKundu/Flame-Savior,Disaster-Area/Pokemon-Showdown,ehk12/bigbangtempclone,BuzzyOG/Pokemon-Showdown,ankailou/Pokemon-Showdown,hayleysworld/harmonia,jd4564/Pokemon-Showdown,FakeSloth/wulu,piiiikachuuu/Pokemon-Showdown,k3naan/Pokemon-Showdown,Luobata/Pokemon-Showdown,AWailOfATail/awoat,megaslowbro1/Pokemon-Showdown,Kenny-/Pokemon-Showdown,Adithya4Uberz/The-Tsunami-League,ZeroParadox/ugh,xfix/Pokemon-Showdown,Zarel/Pokemon-Showdown,Kokonoe-san/Glacia-PS,hayleysworld/serenityserver,SerperiorBae/Pokemon-Showdown,Sora-Server/Sora,Nineage/Origin,ZeroParadox/ugh,xfix/Pokemon-Showdown,yashagl/pokecommunity,Lord-Haji/SpacialGaze,Neosweiss/Pokemon-Showdown,JellalTheMage/Jellals-Server,Flareninja/Lumen-Pokemon-Showdown,Breakfastqueen/advanced,CreaturePhil/Showdown-Boilerplate,Celecitia/Plux-Pokemon-Showdown,sama2/Viridian-Pokemon-Showdown,TheManwithskills/Server,DalleTest/Pokemon-Showdown,AustinXII/Pokemon-Showdown,UniversalMan12/Universe-Server,TbirdClanWish/Pokemon-Showdown,danpantry/Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,DesoGit/Tsunami_PS,hayleysworld/asdfasdf,Syurra/Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,Articuno-I/Pokemon-Showdown,PauLucario/LQP-Server-Showdown,Articuno-I/Pokemon-Showdown,AbsolitoSweep/Absol-server,AnaRitaTorres/Pokemon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Zarel/Pokemon-Showdown,Hidden-Mia/Roleplay-PS,sama2/Lumen-Pokemon-Showdown,Extradeath/advanced,Extradeath/psserver,AvinashSwaminathan/lotus-v2,abrulochp/Lumen-Pokemon-Showdown,ZestOfLife/FestiveLife,Fusxfaranto/Pokemon-Showdown,AvinashSwaminathan/Pokelegends,sama2/Universe-Pokemon-Showdown,Irraquated/EOS-Master,Flareninja/Sora,AnaRitaTorres/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,MeliodasBH/boarhat,Mystifi/Exiled,brettjbush/Pokemon-Showdown,ZeroParadox/BlastBurners,azum4roll/Pokemon-Showdown,Oiawesome/DPPtServ2,xfix/Pokemon-Showdown,InvalidDN/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,MayukhKundu/Technogear-Final,Irraquated/EOS-Master,arkanox/MistShowdown,zek7rom/SpacialGaze,Vacate/Pokemon-Showdown,xCrystal/Pokemon-Showdown,RustServer/Pokemon-Showdown,hayleysworld/Pokemon-Showdown,forbiddennightmare/Pokemon-Showdown-1,RustServer/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,Atwar/ServerClassroom,gustavo515/gashoro,hayleysworld/Showdown-Boilerplate,Alpha-Devs/Alpha-Server,Kill-The-Noise/BlakJack-Boilerplate,Flareninja/Showdown-Boilerplate,javi501/Lumen-Pokemon-Showdown,Alpha-Devs/Alpha-Server,SSJGVegito007/Vegito-s-Server,xfix/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,Ridukuo/Test2,sirDonovan/Pokemon-Showdown,hayleysworld/serenityc9,Enigami/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,johtooo/PS,Gold-Solox/Pokemon-Showdown,Pablo000/aaa,svivian/Pokemon-Showdown,Elveman/RPCShowdownServer,LegendBorned/PS-Boilerplate,Guernouille/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,MayukhKundu/Pokemon-Domain,Nineage/Origin,Vacate/Pokemon-Showdown,Flareninja/Pokemon-Showdown,Ridukuo/Test,SilverTactic/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,johtooo/PS,BasedGod7/PH,BadSteel/Pokemon-Showdown,Git-Worm/City-PS,SerperiorBae/Bae-Showdown-2,kupochu/Pokemon-Showdown,ZestOfLife/PSserver