Tic Tac Toe with JS front-end and Ruby back-end