Added logic to select moon phase