Just fixed the errors with the previous commit

edited sprite class and added a default constructor