added difficulty settings
fixed editor issues when some windows were opened