Replace rule functions using parseInt with bit manipulation.
Use Drawer object for everything; don't call next() from  drawTable.
Move drawTable function entirely into Drawer.
Move changeSquare into Drawer.
Move fillCoord into Drawer.