A program that solves the floodit game