basic version of a simple puzzle