Added grid initialization. HOLY SHIT.