The Science Behind AI Game Algorithms