Removing compiled files.
Ensuring that a rect cannot leave the screen.