Sometimes I will got null pointer exception and the game just exit, maybe 1 out of 10 times.
The exception is throw because the child became null when iterating. It is so