implemented character clipping, not drawing or calculating when character cannot be seen