Checkers implementaion in html and javascript