added rectangle overlap
added basic architecture for rectangel overlap