Added Collision dection