updated print puzzle method