grid is in right order and is contained in a class