Working on log puzzle