Oh, and also counting the metal grids is a pain. I miss calculated a few times because its hard to see how many there are
That's because you're not supposed to count the times the robot has to move, intended method (and much more satisfying) is to create an algorithm that can solve the maze automatically using the variables.