as the red dragon neared , the griffin veered close to the mountain , sometimes climbing , sometimes diving , sometimes doubling back , always using the stony crags of the mountainside to create obstacles .