Added entity and level classes. Entity is half-baked.