Server working for only one request and in tic tac toe game play again replay undo buttons are not getting displayed