Made edits to grid. Edited and filled in functions for critical.