basic collision handle code for detecting when a level has ended