Setting up a Rect class for collision detection