Solves an ASCII maze using BFS algorithm and mark the path with character "X".