working perlin and display, added random class