Struggling to make drawing function work as part of SearchGrid