Created angular factory for accessing game engine and moved Firebase communication out of game engine into angular factory.