Start of maze logic

Needs some work, but basic structure is there...