Determine size of the screen.
Added a use for theMap to not have a warning for an unused variable.