Made sprite into a sublcass of rectangle