Got random map generation actually working properly (I think)!