maze test in c