I am trying to write a minimax algorithm for a pacman game. I am having a problem with the recursion - sometimes my algorithm \'works\' (it does not crash, but returns the wrong