Collision detection for round and rectangle objects