created DetectCollision method in SceneManager