collision detection now works