moved indices method to Grid Class and wrote __getitem__ method to allow grid indexing