solve board implemented (depth-first algorithm)