rect collision detection functions (temporary here)