Refactored block sprite as a class that extends Sprite, and add multiple block functionality.