entities now have unique IDs
added entityId
made entity ids signed ints