Solves a polyomino puzzle