added all the background stuff needed to handle the battle query screen (minus the gui)