I actually used the same algorithm as the original PacMan. (I am too dumb to understand how the newer and more effecient one works)