Add init function to room and player objects