good progress on JS/mithril puzzle solver