Added Collision Detection For Going out of screen