detect collision every action