Implement labyrinth factory and engine