fix getChessboardPoints