Simple rect collision detection implemented