Integrate collision detection to MainActivity