ajax iface to game logic