WOF style puzzle - need help solving