Created grid manager class to handle grid calculations