Day 15 - p2 is brute force, there must be a nicer algorithm that I can't see