Created addEntity function in PlayState