Add collision detection function, still working on getting actual detection to work