a simple gaming engine implemented in CoffeeScript