Atmega328 freezes

capcaunu:
I couldn't find them at the last open electronics shop on Friday evening, and I had no choice but to see if it worked without them. Do you think that's the problem?

Yup. They aren't optional. They are critical to the oscillator's operation.