REST API for playing the game tic tac toe