An attempt at creating an entity system in Java