now squares can't leave the canvas