sidescrolling terrain generator. currently causes browser to crash