chess board implemented in scala.js