AI is insane
Great idea but the problem was the super smart pac man and the stupid ghosts. The only chance you have is when the other ghosts randomly come near pac man and forcing him into your direction. If you made the ghosts smarter, or made pac man stupider, that would solve the problem.