Moving all the logic for the Grid Map in the CustomMap control