Fixed bugs in functions and finished adding starting battles.