AI that doesn't use NavMesh and is similar to PacMan

I’m making a puzzle game so radius makes it really hard to control the AI I want to control the AI in like blocks so it can move 10 blocks squared or so rather then having a radius any tips on making it please help :cry:

Google is your friend:

A* Pathfinding Example in C# - Gigi Labs

There is one error unexpected symbol var?