solutions to 14,15,16
non-cheating solution to 17
cleaning up split definition