Added functionality to read in input from terminal and store maze in the maze variable