isCorrectKey(keypress) {
		
		let matches = []

		for (var i = 0; i < this.letters.length; i++) {
			// get the keycode stored in the data attr
			let keyCode = this.letters[i].dataset.keyc
			// convert to a letter
			let key = this.convertChar(keyCode)
			if (key === keypress) {
				matches.push({
					html: this.letters[i],
					keyCode: keyCode,
					key: key
				})
			}
		}
		return matches
	}
// checks if the keypress is a correct guess, returns obj with the html, keyCode and key
checks if the keypress is a correct guess, returns obj with the html, keyCode and key
checks if the keypress is a correct guess returns obj with the html keyCode and key
isCorrectKey(keypress) {
		let matches = []
		for (var i = 0; i < this.letters.length; i++) {
			let keyCode = this.letters[i].dataset.keyc
			let key = this.convertChar(keyCode)
			if (key === keypress) {
				matches.push({
					html: this.letters[i],
					keyCode: keyCode,
					key: key
				})
			}
		}
		return matches
	}
isCorrectKey ( keypress ) { let matches = [ ] for ( var i = 0 ; i < this . letters . length ; i ++ ) { let keyCode = this . letters [ i ] . dataset . keyc let key = this . convertChar ( keyCode ) if ( key === keypress ) { matches . push ( { html : this . letters [ i ] , keyCode : keyCode , key : key } ) } } return matches }
checks if the keypress is a correct guess, returns obj with the html, keyCode and key
checks if the keypress is a correct guess returns obj with the html keyCode and key
// get the keycode stored in the data attr // convert to a letter