Format of files:
First line contains value of N Second line contain a pair x y integer numbers in the range 0 ... N-1 Next N lines contain each N elements ('.' or '|' or '*')