using vanilla js as long as possible to recreate board game FITS