In window widths or heigths that are not divisible by 8, the chess board
would contain lines between the squares (since the contraints of the
chess board rows would contain non-integer constraints).
With this commit, we calculate margins manually, in order to constrict
the chess board to widths and heights that are divisible by 8.