Implemented trainer view states, worked on the battle view engnie.