Convert pacman char into direction