The collision check is working