border line collision detection implemented