updated editor, adding state and damage, and using php