Refactored battle states to allow history navigation between list and edit/view.