Implemented HangmanCanvas class