Working on brute force solver