fixed maze bugs