Test this shit

Ok so everything should be working
Save rule button stores rules until you hit Save CellType. The Save
button creates the xml. move and attack alternate actiontype. The small
input box is the direction and the big one is RGB