massive rewrite to improve efficiency and add new monster creation mechanism