I need help making a movement script for pacman game in 2d on a circular maze.

i have been trying to make the pacman game in unity 2d. but the main problem is that the map is circular, i couldn’t even get any reference from internet that could help. so I searched on google but i couldn fix the problem pls help me.,