Adding engine.coffee, which I left out of previous commit (oops)