implemented full aabb collision detection