Need some help figuring out my code

My sensor shield appears to be broken, so I can't even properly try my code. For now, I'm dropping the buzzer since the deadline is Tuesday. I'll keep working on it, but I can't test it properly because pins 8-13 are dead on my sensor shield… Thanks for the advice, this will help a lot in future projects as they'll keep getting bigger and harder.