Added Grid class and some functionality to the RNG.