Fix conditions in the function socket.onmessage
Add functions to get the server's response:
getTick, getMoveData, getExamineData, getDictionary.
Add functions to send requests to the server through WebSocket:
examine, dictionary.
Fix old functions.