Changed rectangle to rectangleF, allowing for more accurate collisions