testing collision direction