Cleaned up probability of terrain creation code