I wanted to change things up so that Mine King can appear on any edge, as opposed to only the corners. It is easier than I expected, open game.js and make the following changes:
Line 795 becomes: if(isEdge(a.tx, a.ty))
Line 1018 becomes: if(!isEdge(a.tx, a.ty)) fail("mine king not on edge");