Base case added to paintbucket