Generic backtracking game solver for CS4 project, winter 2012