Chess Analyse Tool with HTML5 canvas