Okay, I've just about finished developing my game. It basically renders a screen with a two-dimensional array containing all the "blocks." The object of the game is for the player to click a "set" of blocks, (where a set is two or more blocks of the same color that are connected, or touching each other) trying to eliminate all of the blocks on the field. It works great if thats all your interested in, but now I'm trying to develop an algorithm that would solve the field in place of the player. I dont have much experience in writing algorithms or anything beyond basic AI, but this seems more of an algorithm solution. Does anyone have any suggestions as to the best approach to solving this?