Coordinates array creation logic moved to the Room class