Trying to make noise algorithm