The program now solves the pentomino problem correctly