Made map size modifiable, working on detection of multiple paths.