A Coffeescript port of Hexcellent.