A mancala solver in c