added solve puzzle