first working maze program