Developed problems with collision detection