Chess game using HTML5 canvas