make game 0-based instead of 1-based. Some coffeescript cleanup