New function for updating the menu, etc.
To avoid code duplication, a new function is created in 
the main file jalmus.java