Solve for level 3

Solution for level 3 was suboptimal, so we now test we solve it optimally