robot now bounces off exactly 50 pixels from edges of JFrame