Logic from Legos

For a very long time I have dreamed of building a fully mechanical maze solving robot. This would be a place to start, the mechanical gates would could be used to remember when a wall had been touched. Lego logic gates