Added a better method for rectangle to rectangle collisions