Changed rectangle variable.
Partially fixed a bug to do with the displaying the screen.