the message task does not consume all cpu core resources
crash fix when game view is closed an reopened
some cleaning
selected entity is kept selected when game mode is finished