working on the outer part now, connectint petworld to the UI