How did geography influence ancient Greece