Implemented AABB collision resolution.