Remove main method in Grid class.