changes made for TreeGame to be ready to work with Angular