refactored dialog mechanism and player initialization