Project Euler #194: Coloured Configurations