implementation of the hangman game with javascript, html, css and canvas