Chess game in Coffeescript