Added option to initialize a random map
Fixed an array out of bounds error