Highly optimized AI for Hex Game (C++)