Added the foundation to collision event handlers, but it still does not work.