Implemented a update() function on Sprites and Groups