The student uses a infinite loop which causes the app to crash/the page to go unresponsive. What should he do to get around this issue?
Use a timed loop. Timed loops do not cause App Lab to crash in most cases.
A link to the project would help us figure out what needs to change.