begin adding perlinNoise() function