why does this code keep freezing?

Printable View