Actually yea, this make sense, the code doesn't work in its current form, but I am sure that I can get this to work correctly. It does calculate the correct border of the screen.