Nearly Working with custom collision detection