Added simple collision-detection.