Created method for finding the boundaries of a sprite