Getting the top-left corner of the window.
 -- Also about to modify the two-dimensional arrays so they are proper rectangles.
About to change two dimentional arrays to rectangles
Minor changes to formatting.