Got coordinates and collision detection working better.