fixed collision detection which was causing a problem with google maps dots