re #10, now the exit button is put at the left bottom of the window
also corrected the 'contains' function that was only working if button was at position (0,0) in the window