update
update
Added more rule checking and fixed bugs
Implemented backtracking algorithm