refactoring sprite/entity management/serialisation