Implemented tree, iterate until winning solution is found... Still does not work flawless.