Made the scanlines look better, fixed tilemap drawing, and added a distance calculating function.