Use matrix in mine field.
Fix NPE.
Fix coordinates in to string output.