now decrpyt maze writing to stdout