Simple reversi game in coffeescript