SWitch Arcane Incantation

Seriously… Does the code for this go something like this?

If (tons_of_blue_tiles_already)
drop CD smack IN BETWEEN ALL OF THEM
else
drop in any one of four corners

How difficult is it to fix this?