-added Entity and Button struct and their init function