My attempt at TopCoder Marathon Match - CollageMaker