Moved the whole battle class to the main program loop