TODO Solve part 2 of day 23 by simplifying the input code instead of leaving the program to run for 5.5 minutes