Javascript implementation of Projective Hex game with AI