collision with end of level and better restart method