I\'m trying to make a backgammon game with Javascript and CSS and tried to make all elements size with PX and get moving distance of pieces by this way: