simple test program to see the screen coordinates you encounter with "if on edge, bounce"... interestingly, it seems to be: left: -239 right: 240 up: 177 down: -182