Cleaning up stuff. Making code a little easier to read and adding a better brute force function.