If touching the edge of the stage, then bounce away


The sprite will bounce at an angle if it is touching the side, top, or bottom of the stage.