Extended version of tic-tac-toe. JS Client and PHP Server