Added support for rotated sprites.
Also made a base class for entities.