read input file that contains info about maze