Fixed explore(). (printing twice problem)