C program for tracking object on a small moveable grid. For simple robots