Fixed gridGeneration and added a starting location option. Also created a test class for the gridGeneration.