Web based AI for X-wing Miniatures game