introduced typescript in parts of the project, also started working on entity system