Roguelike in CoffeeScript using rot.js