fixed new map edge crashing bugs

(from adding extra row/column draw and trying to mine at map edge)