Create boundaries around background object

Use if statement to restrict movement of background object based on
position and object size. Alter size to 40px  increments.