I added variables that allow me to check the boundaries of the screen and initialized them.