Flood It game written in jQuery; also approximates solution