added random terrain gen, needed adjusting mainLoop