simplified a puzzle