fixed pacman running into walls. Still has some strange behaviour sometimes. And dies if approached by two ghosts from opposing sides. TODO: optimize pill finding algorithm