implemented ajax, the client connects to the server, and is able to make moves