started work on entity management and gamecode