Implemented lloyd puzzle