Function for changing room
Some refactoring
Added popup for new word