collision detection appears to be working