Overwrote ostream operator for Grid class