Finished up the gym battle function by completing the conditional and nested conditional statements within it.