Umm, it should be simple and I don’t want to explain it sooooo figure it out yourself.
TABS (Totally Accurate Battle Simulator) for the idea. All code by me. All sprites by me (I know they are bad).