Improved collision detection & tank out of the screen check