created a roomObj to return to the frontend