server and client for the game hex (ajax + php)