I would agree that it's a territorial problem that they are working out. Especially since when you put them in a "neutral" territory (the back yard) they got along fine. Neutering should help this problem.