added collision detection with other shapes