cycle windows if they are at the edge of the screen #28