Color fill algorithm implemented