General suggestion from my side:

Always include the file header matching your implementation file first. I.e. in this case include graphics.h before avalanche.h that will assure everything needed by graphics.h is already included or forward declared there.