TiltMaze (https://code.google.com/p/tiltmazes) modification