Make K-connect AI with optimized algorithm, modify KconnectAI.java if you have better idea ;)