distance calculation logic + vector drawing + FPS counter