added center and simple collision for rects