html5 implementation of the davinci's challenge boardgame