Sprite now detects the edge of the screen