Find Your Hat Game

This is my project. I must say that it was very difficult. I took me lot of time .Good thing is that I was able to complete it. This isn’t the best or I should say good code for this game but the game works fine so I am happy. Few questions I want to ask:

  1. Whenever user gives input, I print the new field. What I want is that whenever user gives input, changes are made only in displaying field and that I should not have to print field again and again.

  2. I want the input to clear after the changes have been made in the field.

  3. I want the players position block to blink.
    In short, I want my game to be exactly as same as was in demonstration image. Is it possilw with the javascript?Sorry If I am unable to convey my questions properly.
    find-your-hat-demo