adding random grid generation