Change a room assignment only if it is still current
Conditional update with map::find
Map.replace
MutableMap.replace on the JVM
Conditional dictionary assignment
Map.updatedWith and Option