Got collision detection working