preliminary solving

finally got some time to implement solving, it s really bad at the
moment, no real backtracking . will improve as time allows