remove black space logic; add validate_grid()