changed wacky algorithm
part 3 final commit