added screen border detection. (does not work yet)