changed the _expand_window function to resize before moving, which gives better behaviour around the screen edges
removed the update checks, they were causing an 'attempt to call a number value' error somewhere