Are you trying to solve the pentominos problem? From your description, it sounds a lot like that. If that's the case, be forewarned that because most people don't do this in real life, but only because it was assigned to them as a homework problem, you might not get much help. However, now that you know the name of the problem, you could probably ask Google and see how it goes.