Simple Checkers game in javascript and canvas