Added rotation collision checking, preparing for line completion