added not drawing things that are off screen so it works with a camera