Update bruteForce.java

loops through every possible path, and attempts to find a solution.