Make collision detection and response work