improved Solver such that direct ways to the target are found straight away during the search, allowing for much faster and longer solutions
updated JavaDoc