Created an abstruct class called Persistent and make Map, Actor, and Gui classes inherit it