Same thing as tictactoe.js but in CoffeeScript