Broken Attempt to finish Knapsack