Added entity factory helper class to core. Nearly completed snake example