Using Coffeescript and Craftyjs to make a train game