Some grid display code implemented