functions isEnterPushed() and (isFocusLost) added and change playerScore