consolidates JS to coffeescript to game